using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using LitTools;
using UnityEngine.UI;

public class MainPanel : UIBase
{
    public override float RemainTime => 5;
    public override int Layer => 0;
    public override string Path => "Prefab/UI/MainPanel";

    private Button btn_start;

    public override void OnInit(GameObject ui)
    {
        btn_start = ui.transform.Find("btn_start").GetComponent<Button>();
        btn_start.onClick.AddListener(OnStartBtnClick);
    }

    public override void OnDestroy()
    {

    }

    public override void OnHide()
    {

    }

    public override void OnShow()
    {

    }

    public override void OnUpdate()
    {

    }

    private void OnStartBtnClick()
    {
        BattleManager.Instance.EnterLevel();
    }
}
